import { Injectable } from '@angular/core';
import { db } from '../../shared/common/db';
import { from } from 'rxjs';

@Injectable({
  providedIn: 'root',
})
export class GoodsService {

  constructor() {
  }

  shopList() {
    return from(db.shopList.toArray());
  }

  shopDetails(id: number) {
    return from(db.shopList.get(id));
  }
}
